<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
  <%@ include file="/commons/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>艺术家发布成功</title>
<link href="../style/css_member.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/common.js"></script>
<script src="../js/artDialog.js?skin=gray"></script>
<script src="../js/artDialog.iframeTools.js"></script>
<script type="text/javascript" src="../js/jquery-1.3.2.js"></script>

<script type="text/javascript">

$(function(){
	$("a[name='addPaintingHref']").click(function(){
		art.dialog.open('${ctx }/painting/addPrepareByPainterStar.do?painter_Id=${p.id }',{title:'添加作品',width:820,height:550,lock:true},false);
    });

	m2('m1_007','m1_007_01');
});

/**修改艺术家基本信息 **/
function modify(id){
	art.dialog.open('${ctx}/painter/modifyPrepare.do?painter.id='+id,{title:'修改艺术家资料',width:820,height:600,lock:true},false);
}

function showNextPagePic(flag){

	var totalPages = document.getElementById("totalPages_Hidden").value;
	var cur_No = document.getElementById("curPage").value;

	if(totalPages == "" || cur_No == ""){
		return ;
	}
	if(flag>0){
		cur_No = parseInt(cur_No) + 1;
		var total_len = '${fn:length(page.result)}';
		if(parseInt(total_len) == 8){
			if(cur_No <= parseInt(totalPages)+1){
				document.getElementById("curPage").value = cur_No;
			}else{
				cur_No = totalPages;
			}
		}
		else if(parseInt(total_len) < 8){
			if(cur_No <= parseInt(totalPages)){
				document.getElementById("curPage").value = cur_No;
			}else{
				cur_No = totalPages;
			}
		}
	}else{
		cur_No = parseInt(cur_No) - 1;
		if(cur_No > 0 ){
			document.getElementById("curPage").value = cur_No;
		}else{
			cur_No = 1;
		}
	}
	
	var x = document.forms[0];
	x.submit();
}

</script>

</head>
<body>

<!-- 页面头部  -->
<jsp:include page="/commons/head_member.jsp"></jsp:include>

<table width="960" border="0" cellspacing="0" cellpadding="0" align="center" class="tbl_border_top">
              <tr>
               		 <td class="bt14A" colspan="100%" align="center">名家基本资料</td>
              </tr>
              <tr>
                <td class="bt14A" width="15%" align="right"><span class="style15">*</span> 年代：</td>
                <td class="bt14A">
                	<c:if test="${ p.decade == 1}">近现代国画名家</c:if>
                	<c:if test="${ p.decade == 2}">近现代油画名家</c:if>
                	<c:if test="${ p.decade == 3}">当代国画名家</c:if>
                	<c:if test="${ p.decade == 4}">当代油画名家</c:if>
                	<c:if test="${ p.decade == 5}">古代国画名家</c:if>
                	<c:if test="${ p.decade == 6}">国外名家</c:if>
                </td>
                <td width="160" rowspan="10" class="bt14A" valign="top">
                    <table width="150" height="184" border="0" cellpadding="0" cellspacing="1" bordercolor="#CCCCCC" bgcolor="#CCCCCC">
                      <tr>
                        <td bgcolor="#FFFFFF" align="center">
                        	 <div id="photoTd" style="width: 150px;height: 184px;" class="pic">
                        	 	<span><img src="${p.originalImagePath }" border="0"  width="147" height="181"></span>
                        	 </div>
                        </td>
                      </tr>
                    </table>
                </td>
                </tr>
              <tr>
                <td class="bt14A" align="right"><span class="style15">*</span> 艺术家姓名：</td>
                <td class="bt14A">${p.name }&nbsp;&nbsp;（字：${p.zi }&nbsp;&nbsp;号：${p.hao }）</td>
                <td></td>
                </tr>
              <tr>
                <td class="bt14A" align="right"><span class="style15">*</span> 年 龄：</td>
                <td class="bt14A">${p.age }年生${p.endAge }年逝</td>
                <td></td>
                </tr>
              <tr>
                <td class="bt14A"><div align="right">毕业院校：</div></td>
                <td class="bt14A">${p.graduatedFrom }</td>
                <td></td>
                </tr>
              <tr>
                <td class="bt14A" align="right">职业/头衔：</td>
                <td class="bt14A">${p.honour }</td>
                <td></td>
               </tr>
               <tr>
               		<td class="bt14A" align="right">市场行情 ：</td>
               		<td class="bt14A">上季：${p.newIndex.time_period }&nbsp;&nbsp;${p.newIndex.price }元/平尺
               		最新:${p.newestIndex.time_period }&nbsp;&nbsp;${p.newestIndex.price }元/平尺
               		</td>
               		<td></td>
               </tr>
               <tr>
               		<td></td>
               		<td class="bt14A">历史最高：${p.maxIndex.time_period }&nbsp;&nbsp;${p.maxIndex.price }元/平尺&nbsp;&nbsp;
               	   		历史最低： ${p.minIndex.time_period }&nbsp;&nbsp;${p.minIndex.price }元/平尺
               		</td>
               	<td></td>
               </tr>
              <tr>
                <td class="bt14A" align="right"><span class="style15">* </span>籍贯：</td>
                <td class="bt14A">${p.provinceInfo.name }${p.cityInfo.name }${p.address }</td>
                <td></td>
                </tr>
              <tr>
                <td class="bt14A" align="right"><span class="style15">*</span> 艺术人生：</td>
                <td class="bt14A" colspan="2">
                	<textarea rows="8" cols="80">${ p.description }</textarea>
                </td>
                </tr>
                <tr><td width="180" height="40"></td>
                <td class="nw12a" width="550">
                	<a href="javascript:modify(${p.id });">
                		<img border="0" src="../images/an41.gif" width="106" height="31" style="cursor: pointer"/>
                	</a>
                </td>
                <td></td>
                </tr>
</table>

<%@ include file="/member/list_painting_fragment.jsp" %>

<jsp:include page="/commons/foot_member.jsp"></jsp:include>

</body>
</html>